package com.keya.base.output;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum RequestCode {

    //常见返回结果，剩下的一一去完善
    SUCCESS(1, "success"),

    ERROR(2, "failed"),

    SERVER_ERROR(3, "error");

    //自定义状态码
    private final int code;
    //自定义描述
    private final String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
